package com.netease.nie.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.netease.nie.common.CommonService;
import com.netease.nie.dao.RobGoodsInfoExtendDao;
import com.netease.nie.dto.RobGoodsInfoExtendDto;
import com.netease.nie.model.RobGoodsInfoExtend;

@Service
public class RobGoodsInfoExtendServiceImpl extends CommonService implements RobGoodsInfoExtendService {
	
	@Autowired
	private RobGoodsInfoExtendDao robGoodsInfoExtendDao;

	public RobGoodsInfoExtendDto queryRobGoodsInfoExtendDtoByRobGoodsId(
			int robGoodsId) {
		RobGoodsInfoExtend robGoodsInfoExtend = robGoodsInfoExtendDao.queryRobGoodsInfoExtendByRobGoodsId(robGoodsId);
		RobGoodsInfoExtendDto robGoodsInfoExtendDto = generateRobGoodsInfoExtendDto(robGoodsInfoExtend);
		return robGoodsInfoExtendDto;
	} 

}
